﻿#ifndef FORM485_H
#define FORM485_H

#include "com_rs485.h"

#include <QWidget>

namespace Ui {
	class Form485;
}

class Form485 : public QWidget
{
	Q_OBJECT

public:
	explicit Form485(QWidget* parent = nullptr);
	~Form485();

	void refreshPortList(void);
	void connect2SensorSlots(void);
	void connectSlots(void);

private:
	Rs485Com* lds;
	SubThread* th;
signals:
	// 连接到传感器信号
	void connect2Sensor(QString portName);


private slots:

	void on_pushButton_set_speed_clicked();

	void on_pushButton_set_mode_speed_clicked();

	void on_pushButton_power_on_clicked();

	void on_pushButton_sync_clicked();

private:
	Ui::Form485* ui;
};

#endif // FORM485_H
